package com.tebiecloud.yunst.client.service;

import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.yunst.client.model.vo.WithdrawInfoVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface IYunWithdrawServiceClient {

    /**
     * 提现接口
     * @param userId //用户id
     * @param amount //金额（单位：分）
     * @return
     */
    @PostMapping("/feign/yunwithdraw/withdrawapply")
    ResultBody<WithdrawInfoVO> withdrawApply(
            @RequestParam(value = "userId") Long userId,
            @RequestParam(value = "amount") int amount);

    @PostMapping("/feign/yunwithdraw/withdrawinfo")
    ResultBody<WithdrawInfoVO> withdrawInfo(
            @RequestParam(value = "withdrawId") Long withdrawId);
}
